//
//  RootController.m
//  swiftUITest
//
//  Created by JIENING ZHANG on 2024/5/18.
//

#import "RootController.h"
#import "swiftUITest-Swift.h"

@interface RootController ()

@end

@implementation RootController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = UIColor.whiteColor;
    
    UIButton* click2go = [[UIButton alloc]initWithFrame:CGRectMake(100, 200, 80, 44)];
    [click2go setTitle:@"clickMe" forState:UIControlStateNormal];
    [click2go setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    [self.view addSubview:click2go];
    
    [click2go addTarget:self action:@selector(click2goClicked) forControlEvents:UIControlEventTouchUpInside];
}

- (void)click2goClicked {
//    UIViewController* page1 = [[TestSwiftUIViewManage new] makePage1];
//    
//    
////    [self presentViewController:page1 animated:YES completion:^{
////            
////    }];
////    return;
//    
//    [self.navigationController pushViewController:page1 animated:YES];
}

@end
